import request from '@/plugins/axios'

export function login(params) {
    console.log(params);
    return request({
        url: '/users/login',
        method: "post",
        data: params
    })
}
export function getSupPage(params) {
    console.log(params);
    return request({
        url: '/supplier/getSupplierPage',
        method: "post",
        data: params
    })
}
export function addSup(params) {
    console.log(params);
    return request({
        url: '/supplier/addSupplier',
        method: "post",
        data: params
    })
}
export function updateSup(params) {
    console.log(params);
    return request({
        url: '/supplier/updateSupplier',
        method: "post",
        data: params
    })
}
export function delSupplier(params) {
    return request({
        url: '/supplier/delSupplier/'+params,
        method: "post",
    })
}
export function getCarriers(params) {
    return request({
        url: '/getCarriersPage',
        method: "post",
        data: params
    })
}
export function addCarriers(params) {
    return request({
        url: '/addCarriers',
        method: "post",
        data: params
    })
}
export function updateCarriers(params) {
    return request({
        url: '/updateCarriers',
        method: "post",
        data: params
    })
}
export function delCarriers(params) {
    return request({
        url: '/delCarriers/'+params,
        method: "post",
    })
}
export function delManySup(params) {
    return request({
        url: '/supplier/delSuppliers/'+params,
        method: "post",
    })
}
export function delManyCarr(params) {
    return request({
        url: '/delManyCarriers/'+params,
        method: "post",
    })
}